package com.demo;

public class MainTest {
    public static void main(String[] args) {
        BST<Integer> bst=new BST<>();
        int[] nums ={5,3,4,8,2,1};
        for (int num :nums)
            bst.add(num);
//        bst.preOrder();
        bst.preOrderNR();
        System.out.println();

        System.out.println(bst);

        bst.inOrder();
        System.out.println("---------------");
        bst.postOrder();
        System.out.println();
    }
}
